var mongoose = require("mongoose")

var Schema = mongoose.Schema

var commentsSchema = new Schema(
  {
  videoid:{type:String,default:""},
  userid:{type:String,default:""},
  publictime:{type:String,default:""},
  likeNum:{ type:Number,default:0},
  content:{type:String,default:""},
  replyUser:{type:String,default:""},
  childComment:{type:Array,default:[]}
},{versionKey: false})



var commentsModel = mongoose.model("comments", commentsSchema)

module.exports = commentsModel